@extends('layout.index')
@section('title','评论修改')
@section('content')
<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">评论修改</h1>
    </div>
    <!-- /.col-lg-12 -->
</div>
<div class="panel panel-default">
	<div class="panel-heading">
		<!-- @if(session('error'))
	   <div class="alert alert-danger alert-dismissable">
            <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
            	{{session('error')}}
        </div>
        @endif -->
        @if (count($errors) > 0)
		    <div class="alert alert-danger">
		        <ul>
		            @foreach ($errors->all() as $error)
		                <li>{{ $error }}</li>
		            @endforeach
		        </ul>
		    </div>
		@endif
	</div>
	<div class="panel-body">
	    <div class="row">
	        <div class="col-lg-4">
	            <form role="form" action="{{url('/admin/content/update')}}" method="post">
	                <div class="form-group">
	                    <label>评论内容</label>
	                    <input type="text" value="{{$content->content}}" name="content"  class="form-control">
	                    <p class="help-block"></p>
	                </div>
	                <div class="form-group">
	                    <label>分数</label>
	                    <input type="text" value="{{$content->point}}" name="point"  class="form-control">
	                    <p class="help-block"></p>
	                </div>
	                
	                <input type="hidden" name="id" value="{{$content->id}}">
	                {{csrf_field()}}
	                <button type="submit" class="btn btn-primary">修改</button>
	                <button type="reset" class="btn btn-danger">重置</button>
	            </form>
	        </div>
	        <!-- /.col-lg-6 (nested) -->
	    </div>
	    <!-- /.row (nested) -->
	</div>
	<!-- /.panel-body -->
</div>
@endsection
